STEP 12: Now let's calculate the area of the triangle.
In Python sometimes it better to do division by multiplying by a decimal. Remember, we use an asterisk * for multiplication.
- Make the value of triangle_area equal to 0.5 * triangle_width * triangle_height.
- This is the same as using the formula area = 1/2 x base x height .
To navigate the page using the TAB key, first press ESC to exit the code editor.